package com.jjc.android.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class VideoDto implements Parcelable {
    private String name;
    private String video;
    private String time;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.video);
        dest.writeString(this.time);
    }

    public void readFromParcel(Parcel source) {
        this.name = source.readString();
        this.video = source.readString();
        this.time = source.readString();
    }

    public VideoDto() {
    }

    protected VideoDto(Parcel in) {
        this.name = in.readString();
        this.video = in.readString();
        this.time = in.readString();
    }

    public static final Parcelable.Creator<VideoDto> CREATOR = new Parcelable.Creator<VideoDto>() {
        @Override
        public VideoDto createFromParcel(Parcel source) {
            return new VideoDto(source);
        }

        @Override
        public VideoDto[] newArray(int size) {
            return new VideoDto[size];
        }
    };
}
